  
cmake_minimum_required(VERSION 3.1)
project(ASan)
# set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS " -std=c++14 -O2 -fno-exceptions -fno-rtti")
find_package(LLVM REQUIRED CONFIG)
list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_DIR}")
add_definitions(${LLVM_DEFINITIONS})
include_directories(${LLVM_INCLUDE_DIRS})
link_directories(${LLVM_LIBRARY_DIRS})
include_directories("${PROJECT_SOURCE_DIR}/include/")

# add_subdirectory("lib/Transforms/ASan")

add_library(ASan MODULE
        # List your source files here.
        lib/Opt.cpp
        lib/ASan.cpp)
# target_link_libraries(ASan)

add_library(First MODULE
        # List your source files here.
        lib/FirstPass.cpp)
# target_link_libraries(ASan)